package com.zxg.threed.service.impl;

import com.zxg.threed.dal.UserModelMapper;
import com.zxg.threed.model.UserModel;
import com.zxg.threed.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserModelMapper userModelMapper;
    @Override
    public UserModel login(String name, String password) {
        UserModel userModel = userModelMapper.selectByNameAndPassword(name, password);
        return userModel;
    }
}
